package com.wn;

import com.wn.bean.Account;
import com.wn.mapper.AccountMapper;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yellow Docter
 * @date 2022 -07-08
 * @desc
 */
public class App {

    public static void main(String[] args) {

        ApplicationContext app = new ClassPathXmlApplicationContext("application.xml");
        AccountMapper accountMapper = app.getBean(AccountMapper.class);
        Account account = accountMapper.findAccountById(1);
        System.out.println("account = " + account);
    }

}
